#MAKEFILE FOR NETWORK PROGRAMMING CSE 533 ASSIGNMENT 4.

CC = gcc

LIBS = -lpthread /home/users/cse533/Stevens/unpv13e/libunp.a
	
FLAGS = -O2 -Wall

CFLAGS = ${FLAGS} -I /home/users/cse533/Stevens/unpv13e/lib

all: tour_gkaruppurraj arp_gkaruppurraj

tour_gkaruppurraj: tour.o lists.o get_hw_addrs.o
	${CC} ${CFLAGS} -o tour_gkaruppurraj lists.o tour.o get_hw_addrs.o ${LIBS}
tour.o:tour.c
	${CC} ${CFLAGS} -c tour.c

arp_gkaruppurraj: arp.o lists.o get_hw_addrs.o
	${CC} ${CFLAGS} -o arp_gkaruppurraj lists.o arp.o get_hw_addrs.o ${LIBS}

arp.o:arp.c
	${CC} ${CFLAGS} -c arp.c

lists.o:lists.c
	$(CC) $(CFLAGS) -c lists.c 

get_hw_addrs.o:get_hw_addrs.c
	${CC} ${CFLAGS} -c get_hw_addrs.c

clean:
	rm -f tour_gkaruppurraj arp_gkaruppurraj *.o

